how to count string characters in php

34

how to count string characters in php -

<?php
$str1 = 'Hello world!';
echo strlen($str1); // Outputs: 12

Comments

Submit
0 Comments